#include "Utils.hh"
#include "BankSystem.hh"
using namespace BankSystem;

// 注册新客户
void registerNewCustomer(BankSystem::BankSystem& bankSystem) {
    SetConsoleOutputCP(CP_UTF8);
    system("clear");
    std::cout << "===== Register New Customer =====" << std::endl;
    
    std::string name;
    std::cout << "Enter customer name: ";
    std::getline(std::cin, name);
    
    if (name.empty()) {
        std::cout << "Error: Customer name cannot be empty." << std::endl;
        waitForEnter();
        return;
    }
    
    bankSystem.registerCustomer(name);
    waitForEnter();
}
